<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body></body>
    <script src="https://cdn.bootcdn.net/ajax/libs/lunar-javascript/1.6.4/lunar.min.js"></script>
    <script>
      var date = Lunar.fromDate(new Date());
      document.body.innerHTML = date.getYearInGanZhi()+"年"+date.getMonthInChinese()+"月"+date.getDayInChinese();
    </script>
</html>